import request from '@/utils/request'

export default{
    //条件查询带课程
    getPageList(page,limit,searchObj){
        return request({
            url: `/eduservice/course/${page}/${limit}`,
            method: 'post',
            data: searchObj
        })
    },

    // 获取课程二级分类
    getNestedTreeList2(){
        return request({
            url: '/eduservice/subject/tree',
            method: 'get'
        })
    },

    getById(courseId) {
        return request({
        url: `/eduservice/course/${courseId}`,
        method: 'get'
         })
        }
    

}